<%@tag description="Change Order Status" pageEncoding="UTF-8"%>

<%@attribute name="url" required="true" rtexprvalue="true"%>
<%@attribute name="order_id" required="true" rtexprvalue="true"%>
<%@attribute name="from" required="true" rtexprvalue="true"%>
<%@attribute name="to" required="true" rtexprvalue="true"%>
<%@attribute name="text" required="true" rtexprvalue="true"%>
<%@attribute name="styleClass" required="false"%>

<form action="${url}" method="POST">
	<input type="hidden" name="id" value="${order_id}">
	<input type="hidden" name="status" value="${from}">
	<input type="hidden" name="toStatus" value="${to}">
	<button type="submit" class="btn btn-default ${styleClass}">${text}</button>
</form>
